
var acp_prio = '!',
	acp_date = '^',
	acp_freq = '*',
	acp_dur = '=',
	acp_tag = '#',
	acp_loc = '@',
	acp_user = '>';

var ac_day = ['Today', 'Tomorrow'];
var ac_days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday',
	'Friday', 'Saturday'];
var ac_months = ['January', 'February', 'March', 'April', 'May', 'June',
	'July', 'August', 'September', 'October', 'November', 'December'];
var ac_freq = ['daily', 'weekly', 'biweekly', 'monthly', 'yearly',
	'after 1 day', 'after 1 week', 'after 2 weeks', 'after 1 month',
	'after 1 year'];
var ac_dur = ['2 min', '5 min', '10 min', '15 min', '30 min', '45 min',
	'1 hour'];
var ac_prio = ['1', '2', '3'];
var ac_tags = ['Personal', 'Event', 'Homework', 'Study', 'Work', 'Errand',
	'Meeting', 'Fun', 'Anniversary', 'Birthday', 'Phone call', 'Email'];

function acpmap(arr, prefix) {
	var amapped = jQuery.map(arr, function(n, i) {
		return (prefix + n);
	});
	return amapped;
}

var ac_date = ac_day.concat(ac_days, ac_months);
var ac_stat = acpmap(ac_date, acp_date).concat(acpmap(ac_freq, acp_freq), 
	acpmap(ac_dur, acp_dur), acpmap(ac_prio, acp_prio), acpmap(ac_tags, acp_tag));
var ac_data = ac_stat;

var dvfield_2_acarr = {'empty' : [], 'ddue' : ac_date, 'ddur' : ac_dur, 
	'dfreq' : ac_freq, 'dtags' : ac_tags};
